//
//  EnhanceBar.h
//  GPUImage_MyDemo
//
//  Created by yuedongkui on 2018/5/21.
//  Copyright © 2018年 LY. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kEnhanceBarCellWidth    72
#define kEnhanceBarCellHeight   72

typedef NS_ENUM(NSUInteger, EnhanceFilterType) {
    EnhanceFilterTypeBrightness = 1,//亮度
    EnhanceFilterTypeExposure, //曝光度
    EnhanceFilterTypeContrast,//对比度
    EnhanceFilterTypeSaturation,//饱和度
    EnhanceFilterTypeGamma,//伽马值
    EnhanceFilterTypeLevel, //色阶
    EnhanceFilterTypeHue,//色相
    EnhanceFilterTypeVibrance, //自然饱和度
    EnhanceFilterTypeWhiteBalance,//白平衡
    EnhanceFilterTypeShadow,//阴影
    EnhanceFilterTypeHighligh, //高光
    EnhanceFilterTypeSkinTone, //肤色
    EnhanceFilterTypeGrayscale,//灰阶
};


@protocol EnhanceBarViewDelegate;
@interface EnhanceBarView : UIView

@property (nonatomic, weak) id<EnhanceBarViewDelegate>delegate;

- (void)configMinValue:(CGFloat)min maxValue:(CGFloat)max defaultValue:(CGFloat)defaultValue;

@end




@protocol EnhanceBarViewDelegate <NSObject>

- (void)enhanceBarView:(EnhanceBarView *)bar didSelectRow:(NSInteger)row;
- (void)enhanceBarView:(EnhanceBarView *)bar didChangeValue:(CGFloat)value;
- (void)enhanceBarDidBack:(EnhanceBarView *)enhanceBarView;
- (void)enhanceBarDidConfirm:(EnhanceBarView *)enhanceBarView;


@end





@interface EnhanceCell : UICollectionViewCell

@property (nonatomic, strong) UIImageView *iconImageView;
@property (nonatomic, strong) UILabel *titleLabel;

@end



@interface EnhanceItem : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic, assign) BOOL isSelected;

@end



